package com.cskaoyan.market.application;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class SmsObserver implements ApplicationListener<RegisterSuccessEvent> {
    @Override
    public void onApplicationEvent(RegisterSuccessEvent event) {
        // 向用户手机发送短信
        System.out.println("向用户手机发送短信: 用户注册成功!");
    }
}